package chances.epg.entity.content;

import java.text.SimpleDateFormat;
import java.util.Date;

public class EpgSchedule implements java.io.Serializable {
	
	private static final long serialVersionUID = 8544124307323503867L;
	
	private Long id;
	private Long channelId;
	private String channelCode;
	private Long contentId;
	private String contentCode;
	private String name;
	private String code;
	private Date startTime;
	private Date endTime;
	private String externalCode;
	
	private EpgSchedule next;
	private EpgSchedule prev;

	public String getExternalCode() {
		return externalCode;
	}

	public void setExternalCode(String externalCode) {
		this.externalCode = externalCode;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getChannelId() {
		return channelId;
	}

	public void setChannelId(Long channelId) {
		this.channelId = channelId;
	}

	public String getChannelCode() {
		return channelCode;
	}

	public void setChannelCode(String channelCode) {
		this.channelCode = channelCode;
	}

	public Long getContentId() {
		return contentId;
	}

	public void setContentId(Long contentId) {
		this.contentId = contentId;
	}

	public String getContentCode() {
		return contentCode;
	}

	public void setContentCode(String contentCode) {
		this.contentCode = contentCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getAppearStartTime() {
		return new SimpleDateFormat("HH:mm").format(startTime);
	}

	public EpgSchedule getNext() {
		return next;
	}

	public void setNext(EpgSchedule next) {
		this.next = next;
	}

	public EpgSchedule getPrev() {
		return prev;
	}

	public void setPrev(EpgSchedule prev) {
		this.prev = prev;
	}

}
